package cn.iocoder.yudao.module.system.controller.admin.erp.warehousein.vo;

import cn.iocoder.yudao.framework.common.util.date.DateUtils;
import cn.iocoder.yudao.module.system.controller.admin.erp.warehouseinsku.vo.WarehouseInSkuRespVO;
import cn.iocoder.yudao.module.system.dal.dataobject.erp.warehouseinsku.WarehouseInSkuDO;
import cn.iocoder.yudao.module.system.dal.dataobject.erp.warehouseinventorysku.WarehouseInventorySkuDO;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY;

@Schema(description = "管理后台 - 入库单 Response VO")
@Data
@ExcelIgnoreUnannotated
public class WarehouseInRespVO {

    @Schema(description = "id", requiredMode = Schema.RequiredMode.REQUIRED, example = "30776")
    @ExcelProperty("id")
    private Long id;

    @Schema(description = "仓库id", example = "28595")
    @ExcelProperty("仓库id")
    private Long warehouseId;

    @Schema(description = "客户id", example = "3094")
    @ExcelProperty("客户id")
    private Long customerId;

    @Schema(description = "入库时间")
    @ExcelProperty("入库时间")
    @JsonFormat(pattern = FORMAT_YEAR_MONTH_DAY,timezone = "GMT+8")
    @DateTimeFormat(pattern=FORMAT_YEAR_MONTH_DAY)
    private LocalDateTime inWarehouseTime;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    @JsonFormat(pattern = DateUtils.FORMAT_YEAR_MONTH_DAY,timezone = "GMT+8")
    @DateTimeFormat(pattern = DateUtils.FORMAT_YEAR_MONTH_DAY)
    private LocalDateTime createTime;

    @Schema(description = "操作人")
    @ExcelProperty("操作人")
    private Long operateBy;

    @Schema(description = "skus")
    @ExcelProperty("skus")
    private List<WarehouseInSkuDO>skus=new ArrayList<>();

    @Schema(description = "仓库", example = "28595")
    @ExcelProperty("仓库")
    private String warehouse;
    @Schema(description = "客户", example = "28595")
    @ExcelProperty("客户")
    private String customer;
}